home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 137 / cd-rom 137.iso / aplic / gantt / ganttproject-2.0.2.exe / net.sourceforge.ganttproject_2.0.0 / data / resources / xslt / gantt-tasks.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2006-08-08  |  1.7 KB  |  53 lines

  1. <?xml version="1.0" encoding="iso-8859-2" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3.  
  4. <xsl:output method="html" indent="yes" encoding="UTF-8"/>
  5.  
  6. <xsl:include href="gantt-utils.xsl"/>
  7.  
  8. <xsl:template match="tasks">
  9.  
  10. <table width="800" border="0">
  11.  <tr>
  12.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@name"/></h5></td>
  13.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@begin"/></h5></td>
  14.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@end"/></h5></td>
  15.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@milestone"/></h5></td>
  16.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@progress"/></h5></td>
  17.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@assigned-to"/></h5></td>
  18.   <td bgcolor="#dddddd"><h5><xsl:value-of select="@notes"/></h5></td>
  19.  </tr>
  20.  <xsl:for-each select="task">
  21.     <tr>
  22.         <td valign="top">
  23.             <xsl:attribute name="style">
  24.             <xsl:choose>
  25.             <xsl:when test="number(@depth) > 0">
  26.             <xsl:text>padding-left: </xsl:text>
  27.             <xsl:value-of select="number(@depth)"/>
  28.             <xsl:text>em;</xsl:text>
  29.             </xsl:when>
  30.             <xsl:otherwise>
  31.             <xsl:text>text-decoration: underline;</xsl:text>
  32.             </xsl:otherwise>
  33.             </xsl:choose>
  34.             </xsl:attribute>
  35.                 <b><xsl:value-of select="name"/></b></td>
  36.         <td valign="top"><xsl:value-of select="begin"/></td>
  37.         <td valign="top"><xsl:value-of select="end"/></td>
  38.         <td valign="top" align="center">
  39.             <xsl:choose>
  40.                 <xsl:when test="milestone='true'">*</xsl:when>
  41.                 <xsl:otherwise> </xsl:otherwise>
  42.             </xsl:choose>
  43.         </td>
  44.         <td valign="top"><xsl:value-of select="progress"/></td>
  45.         <td valign="top"><xsl:value-of select="assigned-to"/></td>
  46.         <td valign="top"><pre width="40"><xsl:value-of select="notes"/></pre></td>
  47.     </tr>
  48.   </xsl:for-each>
  49. </table>
  50. </xsl:template>
  51.  
  52. </xsl:stylesheet>
  53.